
namespace ZR.Model.ProdManage
{
    /// <summary>
    /// bom信息
    /// </summary>
    [SugarTable("prod_bom")]
    public class ProdBom
    {
        /// <summary>
        /// bom主键 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false, ColumnName = "bom_id")]
        public string BomId { get; set; }

        /// <summary>
        /// 产品编号 
        /// </summary>
        [SugarColumn(ColumnName = "item_no")]
        public string ItemNo { get; set; }

        /// <summary>
        /// 产品类型 
        /// </summary>
        [SugarColumn(ColumnName = "item_type")]
        public string ItemType { get; set; }

        /// <summary>
        /// 零件号 
        /// </summary>
        [SugarColumn(ColumnName = "part_code")]
        public string PartCode { get; set; }

        /// <summary>
        /// 用量 
        /// </summary>
        public decimal Qty { get; set; }

        /// <summary>
        /// 生效时间 
        /// </summary>
        [SugarColumn(ColumnName = "effect_date")]
        public DateTime? EffectDate { get; set; }

        /// <summary>
        /// 失效时间 
        /// </summary>
        [SugarColumn(ColumnName = "expiration_date")]
        public DateTime? ExpirationDate { get; set; }

        /// <summary>
        /// 变更编号 
        /// </summary>
        [SugarColumn(ColumnName = "change_no")]
        public string ChangeNo { get; set; }

        /// <summary>
        /// 供应商 
        /// </summary>
        [SugarColumn(ColumnName = "supplier_code")]
        public string SupplierCode { get; set; }

        /// <summary>
        /// 仓库 
        /// </summary>
        [SugarColumn(ColumnName = "ware_code")]
        public string WareCode { get; set; }

        /// <summary>
        /// 是否填充(0=否,1=是) 
        /// </summary>
        [SugarColumn(ColumnName = "is_fill")]
        public string IsFill { get; set; }

        /// <summary>
        /// DMS订单 
        /// </summary>
        [SugarColumn(ColumnName = "dms_order_no")]
        public string DmsOrderNo { get; set; }

        /// <summary>
        /// 计划号 
        /// </summary>
        [SugarColumn(ColumnName = "plan_no")]
        public string PlanNo { get; set; }

        /// <summary>
        /// 获取类型（E：自制件；F：外购件） 
        /// </summary>
        [SugarColumn(ColumnName = "obtain_type")]
        public string ObtainType { get; set; }

        /// <summary>
        /// 管理员（HZF：焊装分总成；ZZF：总成分总成） 
        /// </summary>
        [SugarColumn(ColumnName = "create_user")]
        public string CreateUser { get; set; }

        /// <summary>
        /// 创建人 
        /// </summary>
        [SugarColumn(ColumnName = "create_by")]
        public string CreateBy { get; set; }

        /// <summary>
        /// 创建时间 
        /// </summary>
        [SugarColumn(ColumnName = "create_time")]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人 
        /// </summary>
        [SugarColumn(ColumnName = "update_by")]
        public string UpdateBy { get; set; }

        /// <summary>
        /// 更新时间 
        /// </summary>
        [SugarColumn(ColumnName = "update_time")]
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 备注 
        /// </summary>
        public string Remark { get; set; }

    }
}